//
//  ViewController.m
//  LZSpamCode
//
//  Created by ZengLiZhi on 2024/6/21.
//

#import "ViewController.h"
#import "LZSpamCodeManager.h"

@interface ViewController ()

@property (nonatomic, strong) LZSpamCodeManager *manager;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.manager.gNewClassDirName = @"NewClass";
    self.manager.gNewProjectName = @"NewMBProject";
    
    self.manager.gProjectPath = @"/Users/zenglizhi/Desktop/ReCode/xinhua-mb-ios";
    self.manager.gThisProjectPath = @"/Users/zenglizhi/Desktop/self-pods/LZSpamCode";
    
    self.manager.gOutParameterName = @"ljcanshu";
    self.manager.gSpamCodeFuncationCallName = @"ljfunc";
    self.manager.gNewClassFuncationCallName = @"newfunc";
    
    //@"Category",@"Headers"
    self.manager.gIgnoreDirNames = @[@"Pods",@"UnReCode",@".DS_Store",@"BaseClasses",@"Vender",@"AIWritingModule"];
    self.manager.gSystemPrefixArray = @[@"NS",@"UI",@"SD",@"Base"];
    
    self.manager.gOldClassNamePrefix = @"XHMB";
    self.manager.gNewClassNamePrefix = @"XXSMB";
    
    self.manager.ignoreFuncNames = @[@"viewDidLoad"];
    
    [self start];
}

- (void)start{
    [self.manager start];
}
- (IBAction)start:(id)sender {
    [self start];
}

- (void)viewDidAppear{
    [super viewDidAppear];
}

- (void)setRepresentedObject:(id)representedObject {
    [super setRepresentedObject:representedObject];

    // Update the view, if already loaded.
}

- (LZSpamCodeManager *)manager{
    if (!_manager) {
        _manager = [LZSpamCodeManager shareInstance];
    }
    return _manager;
}
@end
